package com.example.deliveryapplication.sql

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.example.deliveryapplication.entity.Client

@Dao
interface ClientDao {
    @Insert
    fun insertChart(client: Client): Long
    @Query("select * from Client")
    fun loadAllChart(): List<Client>
    @Query("select * from Client where id=:id")
    fun loadClientById(id:String): Client
    @Delete
    fun deleteClient(client: Client): Int
    @Update
    fun updateClient(client: Client): Int
}